<!DOCTYPE html>
<html lang='en'>
<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script type='text/javascript' src='js/vue.js'></script>
</head>
<body>
    <div id='app'>
        <form action="">
            用户名：<input type='text' placeholder="请输入用户名" v-model='username'> ========={{username}}</br>
            密码：<input type='text' placeholder="请输入密码" v-model='password'>==={{password}}</br>
            <input type="button" value="提交" id='btn' @click='aa'>
            <input type="button" value="提交2" id='btn2' @click='bb'>
        </form>
    </div>
    <script type='text/javascript'>
        var vm = new Vue({
            el: '#app',
            data: {
                msg: 'Hello Vue',
                username:'itheima@itcast.cn',
                password:'123456'
            },
            methods:{
                aa(){
                    console.log(this.username,this.password,123);
                    
                },
                bb(){
                    console.log(this.msg);
                    
                }
            }
        });
    </script>
</body>
</html>